package com.example.leetcode.search;

import com.example.leetcode.search.comon.SearchUtils;

class Solution69 {
    public int mySqrt(int x) {
//        return SearchUtils.mySqrt(x);
        return SearchUtils.simpleMySqrt(x);
//        return SearchUtils.simpleMySqrt2(x);
    }
}

public class leetcode69 {
    public static void main(String[] args) {
        Solution69 solution69 = new Solution69();
        System.out.println(solution69.mySqrt(8));
        System.out.println(solution69.mySqrt(4));
        System.out.println(solution69.mySqrt(16));
        System.out.println(solution69.mySqrt(20));
        System.out.println(solution69.mySqrt(2147395599));
        System.out.println(solution69.mySqrt(2147395600));

    }

}
